package com.regex.web.entity.community;

import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.regex.web.entity.AutoIdBaseEntity;

/**
 * <p>
 * 
 * </p>
 *
 * @author mhy
 * @since 2019-12-21
 */
@TableName("t_article")
public class ArticleDTO extends AutoIdBaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 小区id
     */
    @TableField("village_id")
    private Long villageId;

    @TableField("member_id")
    private Long memberId;

    @TableField("content")
    private String content;

    @TableField("pic_url")
    private String picUrl;

    @TableField("type")
    private Long type;

    @TableField("read_count")
    private Integer readCount;

    @TableField("is_top")
    private String isTop;

    @TableField("is_hot")
    private String isHot;

    @TableField("audit")
    private String audit;
    
    @TableField(exist = false)
    private String villageName; // 小区名称
    @TableField(exist = false)
    private String typeName;// 类型名称
    @TableField(exist = false)
    private String nickName; // 昵称
    @TableField(exist = false)
    private List<String> picUrlList; // 图片list
    @TableField(exist = false)
    private int likeCount; // 点赞数量
    @TableField(exist = false)
    private int commentCount;// 评论数量
    @TableField(exist = false)
    private String timeAgo; // 创建时间转换为str
    @TableField(exist = false)
    private int shareCount; // 分享数量
    @TableField(exist = false)
    private String headPic;// 头像
    @TableField(exist = false)
    private String isLike; // 0 未点赞 1 已点赞
    @TableField(exist = false)
    private Integer commontAuditCount;//评论待审核数量
    @TableField(exist = false)
    private String shareContent; // 分享内容
    @TableField(exist = false)
    private String shareImgUrl; // 分享图片链接

    public String getShareImgUrl() {
        return shareImgUrl;
    }

    public void setShareImgUrl(String shareImgUrl) {
        this.shareImgUrl = shareImgUrl;
    }

    public String getShareContent() {
        return shareContent;
    }

    public void setShareContent(String shareContent) {
        this.shareContent = shareContent;
    }

    public Integer getCommontAuditCount() {
        return commontAuditCount;
    }

    public void setCommontAuditCount(Integer commontAuditCount) {
        this.commontAuditCount = commontAuditCount;
    }

    public String getVillageName() {
        return villageName;
    }

    public void setVillageName(String villageName) {
        this.villageName = villageName;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public List<String> getPicUrlList() {
        return picUrlList;
    }

    public void setPicUrlList(List<String> picUrlList) {
        this.picUrlList = picUrlList;
    }

    public int getLikeCount() {
        return likeCount;
    }

    public void setLikeCount(int likeCount) {
        this.likeCount = likeCount;
    }

    public int getCommentCount() {
        return commentCount;
    }

    public void setCommentCount(int commentCount) {
        this.commentCount = commentCount;
    }

    public String getTimeAgo() {
        return timeAgo;
    }

    public void setTimeAgo(String timeAgo) {
        this.timeAgo = timeAgo;
    }

    public int getShareCount() {
        return shareCount;
    }

    public void setShareCount(int shareCount) {
        this.shareCount = shareCount;
    }

    public String getHeadPic() {
        return headPic;
    }

    public void setHeadPic(String headPic) {
        this.headPic = headPic;
    }

    public String getIsLike() {
        return isLike;
    }

    public void setIsLike(String isLike) {
        this.isLike = isLike;
    }

    public Long getVillageId() {
        return villageId;
    }

    public void setVillageId(Long villageId) {
        this.villageId = villageId;
    }
    
    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }
    
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
    
    public String getPicUrl() {
        return picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }
    
    public Long getType() {
        return type;
    }

    public void setType(Long type) {
        this.type = type;
    }
    
    public Integer getReadCount() {
        return readCount;
    }

    public void setReadCount(Integer readCount) {
        this.readCount = readCount;
    }
    
    public String getIsTop() {
        return isTop;
    }

    public void setIsTop(String isTop) {
        this.isTop = isTop;
    }
    
    public String getIsHot() {
        return isHot;
    }

    public void setIsHot(String isHot) {
        this.isHot = isHot;
    }
    
    public String getAudit() {
        return audit;
    }

    public void setAudit(String audit) {
        this.audit = audit;
    }

    @Override
    protected Serializable pkVal() {
        return super.pkVal();
    }

    @Override
    public String toString() {
        return "ArticleDTO{" +
        "villageId=" + villageId +
        ", memberId=" + memberId +
        ", content=" + content +
        ", picUrl=" + picUrl +
        ", type=" + type +
        ", readCount=" + readCount +
        ", isTop=" + isTop +
        ", isHot=" + isHot +
        ", audit=" + audit +
        "}";
    }
}
